package org.ccay.log.webtrace.impl;

import org.apache.log4j.NDC;
import org.ccay.core.exception.ApplicationException;
import org.ccay.core.support.session.IAfterRequestHandler;
import org.ccay.core.support.session.RequestEventArgs;

/**
 * Web Trace 出站管理器，不再需要了，Name 已经注释掉
 * @author chaowangbang
 * @since 2012-5-30
 */
public final class WebTraceOutHandler implements IAfterRequestHandler {

	/* (non-Javadoc)
	 * @see www.ccay.org.ccay.core.support.session.IAfterRequestHandler#execute(java.lang.Object, www.ccay.org.ccay.core.support.session.RequestEventArgs)
	 */
	public void execute(Object sender, RequestEventArgs args) throws ApplicationException {
		NDC.pop();
		NDC.remove();
	}

}
